<template>
    <h1>{{ title }}</h1>
    <span>{{ content }}</span>
</template>

<script setup lang="ts">

const { title, content } = defineProps<{ title: string, content?: string }>()

function handle() {
    alert(title)
}

defineExpose({
    handle
})

</script>

<style>
</style>